<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件列表</title>
</head>
<body>
	<h2>
		欢迎${username}使用本系统。<a href="UserLogoutServlet">退出</a>
	</h2>
	<hr />
	<h2>
		<a href="upload.jsp">上传</a>
	</h2>
	<table border="1">
		<thead>
			<tr>
				<th>文件名</th>
				<th>文件大小</th>
				<th>文件类型</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${documents}" var="doc">
				<tr>
					<td>${doc.name }</td>
					<td>${doc.size }</td>
					<td>${doc.type }</td>
					<td><a href="DownLoadDocumentServlet?name=${doc.name }">下载</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>




</body>
</html>